<?php

m2import('phpinchains/tags/is/insertHandler.php');

class cms_preparetextHandler extends is_insertHandler {

    /**
     * Is a body tag (if false, body is ignored)
     */
    var $tagType = PSP_BODY_TAG;
    /**
     * Tag name in form namespace:tagname
     */
    var $tagName = 'cms:preparetext';
    var $requiredAttributes = array();

    function doStartTag() {
        // initializes $this->buffer and pushes the listener on the stack of the 
        // main output writer
        return PSP_EVAL_BODY_BUFFERED;
    }

    function doEndTag() {
        $this->out->write($this->prepareText($this->body->getBuffer()));
        return PSP_SKIP_BODY;
    }

}

?>